package com.bestcem.xm.user.util.convert;

import com.bestcem.xm.user.entity.mysql.UserBookingTrack;
import com.bestcem.xm.user.entity.pojo.UserBookingTrackDO;
import com.bestcem.xm.user.service.dto.user.UserBookingTrackDTO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 用户埋点数据对象转换类
 *
 * @author qiongyu.cui <qiongyu.cui@idiaoyan.com>
 * @version v1.0
 * @date 2022/3/17 16:22
 */
@Mapper(componentModel = "spring")
public interface UserBookingTrackConvert {

    UserBookingTrackDO mysql2Do(UserBookingTrack userBookingTrack);
    List<UserBookingTrackDO> mysqls2Dos(List<UserBookingTrack> userBookingTracks);
    UserBookingTrack do2Mysql(UserBookingTrackDO userBookingTrackDo);
    List<UserBookingTrack> dos2Mysqls(List<UserBookingTrackDO> userBookingTrackDos);

    UserBookingTrackDTO do2Dto(UserBookingTrackDO userBookingTrackDo);
    List<UserBookingTrackDTO> dos2Dtos(List<UserBookingTrackDO> userBookingTrackDos);
    UserBookingTrackDO dto2Do(UserBookingTrackDTO userBookingTrackDto);
    List<UserBookingTrackDO> dtos2Dos(List<UserBookingTrackDTO> userBookingTrackDtos);

}
